package com.mayuran19.portal.web.sale.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mayuran19.portal.common.service.ProductService;
import com.mayuran19.portal.sales.service.SaleDetailService;
import com.mayuran19.portal.sales.service.SaleHeaderService;

@Controller
public class SalesController {
	private ProductService productService;
	private SaleHeaderService saleHeaderService;
	private SaleDetailService saleDetailService;

	public void setProductService(ProductService productService) {
		this.productService = productService;
	}

	public void setSaleHeaderService(SaleHeaderService saleHeaderService) {
		this.saleHeaderService = saleHeaderService;
	}

	public void setSaleDetailService(SaleDetailService saleDetailService) {
		this.saleDetailService = saleDetailService;
	}

	@RequestMapping(value = "/accounting/sales/add")
	public String add(Model model) {
		return "sale.add";
	}
}
